package com.itheima.edu.info.manager.D_Dao;

import com.itheima.edu.info.manager.E_domain.LaoShi;

import java.util.ArrayList;

public class LaoShiDao {
    ArrayList<LaoShi> list =new ArrayList();
    public void tianjia(LaoShi ls) {
        list.add(ls);
    }

    public ArrayList<LaoShi> geArrayList() {
    return list;
    }

    public void shanChu(int index) {
        list.remove(index);
    }
}
